import './assets/main.css'

// 引入 ElementPlus    Ant 

import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router  from "@/router";





/*1  引入createPinia，用于创建pinia */
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

const pinia  = createPinia();
pinia.use(piniaPersist)

const app= createApp(App);



app.use(pinia) //注册pina 组件


//注册全局组件
app.use(ElementPlus)
app.use(router) ;// 注册 router-link   router-view
app.mount('#app')
